package com.geekstudy.week9.service;

import com.geekstudy.api.OrderApi;
import com.geekstudy.entity.Order;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService(version = "1.0.0", tag = "red", weight = 100)
public class OrderService implements OrderApi  {

    @Override
    public Order findOrderById(int id) {
        String name = "OrderName";
        float amount = 12.12f;
        Order order = new Order(id, name, amount);
        return order;
    }


}
